package Leetcode;

public class Leetcode_213 {
    public static boolean checkOnesSegment(String s) {
        return !s.contains("01");
    }

    public static void main(String[] args) {
        String s = "1001";
        System.out.println(checkOnesSegment(s));
    }
}
